using SDL;
using Gee;

class GameObjectLayer : Layer {

	public ArrayList<GameObject> objects = new ArrayList<GameObject>();
	public Rectangle accessible_area { get; set; }

	public GameObjectLayer(Rectangle dimensions) {
		base(dimensions);
	}

	public void add_object(GameObject object) {
		this.objects.add(object);
	}

	public override void render(Screen surface) {
		this.surface.fill(null, this.colorkey);
		foreach (GameObject object in this.objects) {
			object.render(this.surface);
		}
		SDLGraphics.Rectangle.fill_color(this.surface, 30, 30, 330, 330, (uint32)0x00ff00ff);
		base.render(surface);
	}

}


